@import '../../style/common.less';

.chart-list{
        margin-bottom: 10px;
        height: 260px;
    > .chart-box{
        width: 100%;
        height: 100%;
        position: relative;
    }
}

.fn-box{
 display: block;
 margin: 0 12px 12px;
 background-color: @cff;

 > .title{
     display: block;
     height: 40px;
     font-size: .8rem;
     padding: 10px 15px;
     line-height: 20px;
     color: @fontc;
     &::before{
         content: '';
         display: inline-block;
         width: 3px;
         height: 20px;
         background-color: @fontc;
         vertical-align: bottom;
         margin-right: 12px;
     }
 }

 > .box-items{
    display: block;
    position: relative;
    .clear();
    padding: 10px;
    border-top: 1px solid @cf3;
    > .item{
        float: left;
        width: 25%;
        > .item-icon{
            display: block;
            width: 56px;
            height: 56px;
            margin: auto;
            // background-color: wheat;
            .loop();
        }
        > .item-text{
            display: block;
            text-align: center;
            color: @fontc;
            font-size: .7rem;
            margin-top: 5px;
        }

    }
 }
}


//图片数组
@icons: product-list product-new project-list project-new purchase-list purchase-new receive-list receive-new setting supplier-list supplier-new;
.loop(@index:1) when(@index <= length(@icons)){
    @icon: extract(@icons, @index);

    &.@{icon} {
        background-image: url("../../image/home/@{icon}.png");
    }
    .loop(@index + 1);
}